package com.kly.user.rulePolicy.enums;

/**
 * @author linqu
 */
public enum ConditionGroupComposeEnum {

    /**
     * 满足所有|满足任意|任一不满足|均不满足
     */
    ALL, ANY, ANY_NOT, ALL_NOT;

    public static ConditionGroupComposeEnum transformByName(String name) {
        for (ConditionGroupComposeEnum conditionGroupCompose : ConditionGroupComposeEnum.values()) {
            if (conditionGroupCompose.name().equalsIgnoreCase(name)) {
                return conditionGroupCompose;
            }
        }
        return null;
    }

}
